package com.fr.chicken.manager.account;

public enum EPlatformFlag {
    Phone(3),
    WeiChat(2);

    private int val;
    EPlatformFlag(int val){
        this.val = val;
    }

    public int getVal() {
        return val;
    }

    public static boolean valid(int platform){
        for(EPlatformFlag val : values()){
                if(val.getVal() == platform){
                    return true;
                }
        }
        return false;
    }
}
